//rom locations defines.  do not change
#define BUFFER_SIZE           4096
#define PROGRAM_MEMORY_SIZE   getenv("PROGRAM_MEMORY")
#define BUFFER_END            PROGRAM_MEMORY_SIZE-1
#define BUFFER_START          (PROGRAM_MEMORY_SIZE-BUFFER_SIZE)
#if defined(__PCM__)
   #if BUFFER_SIZE > 6144
      #org BUFFER_START, BUFFER_END-0x1800 {}
      #org BUFFER_END-0x17FF, BUFFER_END-0x1000 {}
      #org BUFFER_END-0xFFF, BUFFER_END-0x800 {}
      #org BUFFER_END-0x7FF, BUFFER_END {}
   #elif BUFFER_SIZE > 4096
      #org BUFFER_START, BUFFER_END-0x1000 {}
      #org BUFFER_END-0xFFF, BUFFER_END-0x800 {}
      #org BUFFER_END-0x7FF, BUFFER_END {}
   #elif BUFFER_SIZE > 2048
      #org BUFFER_START, BUFFER_END-0x800 {}
      #org BUFFER_END-0x7FF, BUFFER_END {}
   #else
      #org BUFFER_START, BUFFER_END {}
   #endif
#else
   #org BUFFER_START, BUFFER_END {}
#endif
